Skip to content

Conversation

@alexcrichton
Copy link
Member

In poking around at #1495 I found that there was no way to actually print the name of the current test being run. I also found that it wouldn't be easy to print the name of the test as it was run before it started running to figure out which test was hanging. Instead of building out infrastructure to do this I've instead opted to switch to using libtest-mimic-the-crate also being used in wasm-tools and Wasmtime. This should help add these options by default and while it's not a standard embedding it's close enough.

The main downside with this is that libtest-mimic requires 'static tests which was not implemented in this crate. That required a lot of clones to get lifetimes to line up.

In poking around at bytecodealliance#1495 I found that there was no way to actually
print the name of the current test being run. I also found that it
wouldn't be easy to print the name of the test as it was run before it
started running to figure out which test was hanging. Instead of
building out infrastructure to do this I've instead opted to switch to
using `libtest-mimic`-the-crate also being used in wasm-tools and
Wasmtime. This should help add these options by default and while it's
not a standard embedding it's close enough.

The main downside with this is that `libtest-mimic` requires `'static`
tests which  was not implemented in this crate. That required a lot of
clones to get lifetimes to line up.
@alexcrichton alexcrichton added this pull request to the merge queue Jan 12, 2026
Merged via the queue into bytecodealliance:main with commit 90b5013 Jan 12, 2026
27 checks passed
@alexcrichton alexcrichton deleted the libtest-mimic branch January 12, 2026 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants